FROM openjdk:8-jdk-alpine
# 获取jre
MAINTAINER minjihong

# 设置JDK
#ADD jdk-8u411-linux-aarch64.tar.gz /usr/local
#
#RUN ls -l /usr/local
#RUN ls -l /usr/local/jdk1.8.0_411/bin
#RUN chmod +x /usr/local/jdk1.8.0_411
#
#ENV JAVA_HOME=/usr/local/jdk1.8.0_411
#ENV JRE_HOME=/usr/local/jdk1.8.0_411/jre
#ENV PATH=$JAVA_HOME/bin:$PATH

WORKDIR /ruoyi/


ENV SERVER_PORT=8081 LANG=C.UTF-8 LC_ALL=C.UTF-8

EXPOSE ${SERVER_PORT}

ADD ./target/juexun_mqttplc_client-2.1.8.RELEASE.jar ./app.jar

ENTRYPOINT ["java", \
            "-Djava.security.egd=file:/dev/./urandom", \
            "-Dserver.port=${SERVER_PORT}", \
            # 应用名称 如果想区分集群节点监控 改成不同的名称即可
#            "-Dskywalking.agent.service_name=ruoyi-server", \
#            "-javaagent:/ruoyi/skywalking/agent/skywalking-agent.jar", \
            "-jar", "app.jar"]
